package com.xiaoshuidi.cloud.module.rooms.controller.admin.roomhouse.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author hans.zhang
 */
@Data
@Schema(description = "备案信息")
public class RoomHouseInfoVO {

    @Schema(description = "产权人姓名")
    @NotNull(message = "产权人姓名不能为空")
    private String ownerName;

    @Schema(description = "产权人证件类型,1-居民身份证，2-社会统一信用代码，3-组织机构代码证，9-其他")
    @NotNull(message = "产权人证件类型不能为空")
    private String cardType;

    @Schema(description = "产权人证件号码")
    @NotNull(message = "产权人证件号码不能为空")
    private String cardNo;

    @Schema(description = "产权人联系电话")
    @NotNull(message = "产权人联系电话不能为空")
    private String telPhone;

    @Schema(description = "产权类型  1-商品房合同，2-房地产权证，9-其他")
    @NotNull(message = "产权类型不能为空")
    private String propertyType;

    @Schema(description = "产权证编号")
    @NotNull(message = "产权证编号不能为空")
    private String propertyNo;

    @Schema(description = "房屋类型 1-住宅，2-非住宅")
    @NotNull(message = "房屋类型不能为空")
    private String registerType;

    @Schema(description = "房屋结构，1-钢筋混凝土结构，2-钢结构，3-混合结构，4-其他结构")
    @NotNull(message = "房屋结构不能为空")
    private String houseStructure;

    @Schema(description = "附件信息")
    @Size(min = 0, max = 500, message = "附件链接长度不能超过500字符")
    private String picUrl;
}
